var c = Object.defineProperty;
var l = (e, t, n) => t in e ? c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var o = (e, t, n) => (l(e, typeof t != "symbol" ? t + "" : t, n), n);
import { P as s, c as a, o as d } from "./index.b702b2b1.js";
const i = {
  key: "ProductQuality",
  chartKey: "VProductQuality",
  conKey: "VCProductQuality",
  title: "\u4EA7\u54C1\u8D28\u91CF\u56FE",
  category: "Pies",
  categoryName: "\u997C\u56FE",
  package: "Charts",
  chartFrame: "echarts",
  image: "productQuality.png"
}, u = [
  "productQuality",
  "ok",
  "ng"
], g = {
  ok: {
    name: "\u5408\u683C\u6570",
    value: 96,
    percent: 56.470588235294116
  },
  ng: {
    name: "\u4E0D\u5408\u683C\u6570",
    value: 74,
    percent: 43.529411764705884
  }
}, y = {
  ok: null,
  ng: null
}, r = {
  dimensions: u,
  data: g,
  config: y
}, f = ["#84FE00", "#FE0005"], x = ["legend", "xAxis", "yAxis", "grid"], m = {
  type: "pie",
  z: 3,
  center: ["50%", "50%"],
  radius: ["30%", "45%"],
  clockwise: !0,
  avoidLabelOverlap: !0,
  hoverOffset: 15,
  itemStyle: {
    normal: {
      color: function(e) {
        return f[e.dataIndex];
      },
      label: {
        formatter: function(e) {
          return e.name !== "" ? e.value + `

` + e.percent + "%" : "";
        }
      }
    }
  },
  labelLine: {
    normal: {
      length: 10,
      length2: 20,
      lineStyle: {
        width: 1
      }
    }
  },
  data: d(r.data)
}, p = {
  title: {
    x: "center",
    y: "center",
    textStyle: {
      color: "#fff"
    }
  },
  tooltip: {
    trigger: "item",
    formatter: "{b} : {c} \u6B21 ({d}%)",
    position: "right"
  },
  legend: {
    orient: "vertical",
    right: "right",
    itemWidth: 12,
    icon: "square",
    data: ["\u5408\u683C\u6570", "\u4E0D\u5408\u683C\u6570"]
  },
  dataset: { ...r },
  series: [m]
};
class C extends s {
  constructor() {
    super(...arguments);
    o(this, "key", i.key);
    o(this, "chartConfig", a(i));
    o(this, "option", a(p));
  }
}
export {
  f as colorList,
  C as default,
  x as includes,
  p as option,
  m as seriesItem
};
